-
Notifications
You must be signed in to change notification settings - Fork 663
Navigation: Fix TS problems and make TS improvements in demos #32152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request fixes TypeScript problems in React demos for VectorMap, FloatingActionButton, and Localization components, enabling the removal of exclusions from tsconfig.react-check.json.
Changes:
- Added TypeScript type definitions for VectorMap data modules and improved type safety across VectorMap demos
- Enhanced TypeScript types in FloatingActionButton demo with proper ref typing and data structure definitions
- Added global TypeScript declarations for Globalize and JSON imports in Localization demo
- Changed tooltip functions to return empty objects instead of null for consistency
- Added proper ref types and optional chaining for component instance access
Reviewed changes
Copilot reviewed 36 out of 48 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
apps/demos/tsconfig.react-check.json |
Removed exclusions for FloatingActionButton, VectorMap, and Localization demos now that TS issues are fixed |
apps/demos/Demos/VectorMap/**/React/devextreme-vectormap-data.d.ts |
Added type definitions for GeoJSON world map data (multiple files) |
apps/demos/Demos/VectorMap/**/React/data.ts |
Added type definitions for GDP and population data structures |
apps/demos/Demos/VectorMap/**/React/App.tsx |
Improved types with proper casting and optional chaining |
apps/demos/Demos/VectorMap/**/React/TooltipTemplate.tsx |
Added types for tooltip template components (with issues) |
apps/demos/Demos/VectorMap/**/React/PieChartComponent.tsx |
Added proper prop interfaces for PieChart components |
apps/demos/Demos/VectorMap/**/ReactJs/*.js |
Applied consistent changes to JavaScript versions (return {}, optional chaining) |
apps/demos/Demos/FloatingActionButton/Overview/React/data.ts |
Added comprehensive type definitions for direction configuration |
apps/demos/Demos/FloatingActionButton/Overview/React/App.tsx |
Added proper ref typing and improved type safety |
apps/demos/Demos/Localization/UsingGlobalize/React/global.d.ts |
Added global type declarations for third-party modules |
apps/demos/Demos/VectorMap/TooltipsCustomization/React/TooltipTemplate.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 36 out of 49 changed files in this pull request and generated 4 comments.
apps/demos/Demos/VectorMap/TooltipsCustomization/React/TooltipTemplate.tsx
Outdated
Show resolved
Hide resolved
pharret31
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some fixes are required
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 36 out of 49 changed files in this pull request and generated 10 comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 36 out of 49 changed files in this pull request and generated 4 comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 36 out of 49 changed files in this pull request and generated 3 comments.
apps/demos/Demos/VectorMap/TooltipsCustomization/React/PieChartComponent.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 37 out of 50 changed files in this pull request and generated no new comments.
No description provided.